package cn.com.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import cn.com.mapper.MajorTypeMapper;
import cn.com.beans.MajorType;
import cn.com.service.MajorTypeService;

import java.util.List;

@Service
public class MajorTypeServiceImpl implements MajorTypeService {

    @Resource
    private MajorTypeMapper majorTypeMapper;

    @Override
    public int insert(MajorType record) {
        return majorTypeMapper.insert(record);
    }

    @Override
    public int insertSelective(MajorType record) {
        return majorTypeMapper.insertSelective(record);
    }

    @Override
    public int deleteByPrimaryKey(Integer mtId) {
        return majorTypeMapper.deleteByPrimaryKey(mtId);
    }

    @Override
    public MajorType selectByPrimaryKey(Integer mtId) {
        return majorTypeMapper.selectByPrimaryKey(mtId);
    }

    @Override
    public int updateByPrimaryKeySelective(MajorType record) {
        return majorTypeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(MajorType record) {
        return majorTypeMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<MajorType> findAll(MajorType majorType) {
        return majorTypeMapper.findAll(majorType);
    }
}

